package com.imooc.exception;

import com.imooc.enums.ResultEnum;

/**
 * @author Administrator
 * @Title: SellException
 * @ProjectName sell
 * @Description:
 * @date 2018/12/7/00715:07
 */
public class SellException extends RuntimeException {
     private  Integer code;

     public  SellException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code=resultEnum.getCode();
     }

     public  SellException (Integer code,String  message){
        super(message);
        this.code=code;
     }
}
